require.config({
	paths : {
		"jquery" : "system/third/jquery/jquery-1.9.1.min",
		"dialog" : "system/components/dialog/xdialog",
		"resize" : "system/util/bindresize"
	},
	shim:{
		"resize":{
			deps:["jquery"]//deps是依赖
		},
		"dialog":{
			deps:["jquery","resize"],//deps是依赖
			exports:"XDialog"//window里的对象名称
		}
	}
});
define(["jquery","dialog","resize"],function($,dialog){
	var dialog = $("#123").XDialog().data("XDialog");
	dialog.addButton([{
		text:"123",
		click:function(){
			alert(1);
		}
	},
	{
		text:"ddd"
	}]);
});